﻿<Window x:Class="SsTool.Core.Windows.ApplicationWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Window1" SizeToContent="Height" Width="400" WindowStartupLocation="CenterScreen">
    <Grid>
        <StackPanel>
            <Label Content="名称:"/>
            <TextBox Name="_ctlEditName" Text="{Binding Path=Name,Mode=TwoWay}"/>
            <Label Content="主题"/>
            <Grid>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="*"/>
                    <ColumnDefinition Width="auto"/>
                </Grid.ColumnDefinitions>
                <TextBox Name="_ctlEditTheme" Grid.Column="0" IsReadOnly="True" VerticalContentAlignment="Center"/>
                <Button Grid.Column="1" Name="_ctlBtnSelectTheme" Click="_ctlBtnSelectTheme_Click" Margin="5,0,0,0">
                    <StackPanel Orientation="Horizontal" Margin="1">
                        <Image Source="../../Resources/folder-open.png" Margin="0,0,3,0"/>
                        <TextBlock Text="选择主题" VerticalAlignment="Center"/>
                    </StackPanel>
                </Button>
            </Grid>
            <Label Content="图标:"/>
            <StackPanel Orientation="Horizontal">
                <Button Name="_ctlBtnLogo" Margin="5,5,0,5" VerticalAlignment="Bottom" ToolTip="点击选择图片" Click="_ctlBtnLogo_Click">
                    <Grid Background="#78000000">
                        <Image Name="_ctlImage128" Width="128" Height="128"/>
                    </Grid>
                </Button>
                <Grid Background="#78000000" Margin="5,5,0,5" VerticalAlignment="Bottom">
                    <Image Name="_ctlImage64" Width="64" Height="64"/>
                </Grid>
                <Grid Background="#78000000" Margin="5,5,0,5" VerticalAlignment="Bottom">
                    <Image Name="_ctlImage32" Width="32" Height="32"/>
                </Grid>
                <Grid Background="#78000000" Margin="5,5,0,5" VerticalAlignment="Bottom">
                    <Image Name="_ctlImage16" Width="16" Height="16"/>
                </Grid>
            </StackPanel>
            <Label Content="排序号:"/>
            <TextBox Name="_ctlEditOrderIndex" Text="{Binding Path=OrderIndex,Mode=TwoWay}"/>
            <StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
                <Button Name="_ctlBtnSubmit" Click="_ctlBtnSubmit_Click" Margin="5,5,0,5">
                    <StackPanel Orientation="Horizontal">
                        <Image Source="../../Resources/Accept.png" Margin="0,0,5,0"/>
                        <TextBlock Text="保存" VerticalAlignment="Center"/>
                    </StackPanel>
                </Button>
                <Button Name="_ctlBtnCancel" Click="_ctlBtnCancel_Click" Margin="5,5,0,5">
                    <StackPanel Orientation="Horizontal">
                        <Image Source="../../Resources/Cancel.png" Margin="0,0,5,0"/>
                        <TextBlock Text="关闭" VerticalAlignment="Center"/>
                    </StackPanel>
                </Button>
            </StackPanel>
        </StackPanel>
    </Grid>
</Window>
